import React from 'react'

//用户列表
export async function apiGetUserList(params) {
  return await React.$post('/admin/memberInfo/page', params);
}
//用户详情
export async function apiGetUserDetails(params) {
  return await React.$post('/admin/memberInfo/memberDetail', params);
}
//冻结账号
export async function apiFreeBanned(params) {
  return await React.$post('/admin/memberInfo/freeze', params);
}
//解冻账号
export async function apiUnFreeze(params) {
  return await React.$post('/admin/memberInfo/unfreeze', params);
}
//封禁发布
export async function apiUserBanned(params) {
  return await React.$post('/admin/memberInfo/banned', params);
}
//解禁发布
export async function apiUnBanned(params) {
  return await React.$post('/admin/memberInfo/unbanned', params);
}
//用户动态
export async function apiMemberDynamicPage(params) {
  return await React.$post('/admin/dynamicInfo/memberDynamicPage', params);
}
//用户动态-详情
export async function apiMemberDynamicDetail(params) {
  return await React.$post('/admin/dynamicInfo/memberDynamicDetail', params);
}
//用户动态-封禁记录
export async function apiMemberBannedRecordPage(params) {
  return await React.$post('/admin/memberBannedRecord/page', params);
}
//用户积分详情
export async function apiGetScorePage(params) {
  return await React.$post('/admin/scoreRecord/page', params);
}
//会员等级新增
export async function apiLevelSettingAdd(params) {
  return await React.$post('/admin/levelSetting/add', params);
}
//会员等级列表
export async function apiLevelSettingList(params) {
  return await React.$post('/admin/levelSetting/list', params);
}
//会员等级修改
export async function apiLevelSettingEdit(params) {
  return await React.$post('/admin/levelSetting/edit', params);
}
//会员等级删除
export async function apiLevelSettingDel(params) {
  return await React.$post('/admin/levelSetting/del', params);
}
//宠物档案
export async function apiPetArchivesPage(params) {
  return await React.$post('/admin/petArchives/page', params);
}
//优惠券
export async function apimemberDetailCouponPage(params) {
  return await React.$post('/admin/memberCoupon/memberDetailCouponPage', params);
}
//导出
export async function apiMemberInfoExport(params) {
  return await React.$post('/admin/memberInfo/list', params);
}
//积分记录
export async function apiMemberIntegralRecord(params) {
  return await React.$postJson('/user/api/b/integralRecord/page', params);
}
export async function apiViewByUserName(params) {
  return await React.$postJson('/admin/sys/user/viewByUserName', params);
}
